package com.boot.entity;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class User {
    private Long id;

    private LocalDateTime addTime;

    private String userName;

    private String password;

    private Integer age;

    private Integer sex;

    //一对一的关系:一个用户有一个地址
    private Address address;

    //一个用户有多个商品
    private List<Goods> goods;

}
